<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>添加内容</title>
<load href="__PUBLIC__/css/bootstrap.min.css" />
<import type='css' file="css.main" />
<load href="__PUBLIC__/js/jquery-1.9.1.min.js" />
<load href="__PUBLIC__/js/jquery-ui.min.js" />
<import type='js' file="js.main" />
<import type='js' file="js.setshowflag" />
<import type='js' file="js.moment" />
<import type='js' file="js.daterangepicker" />
<script type="text/javascript">
$(function(){
	$('#pro_starttime').daterangepicker({ singleDatePicker: true }, function(start, end, label) {
		console.log(start.toISOString(), end.toISOString(), label);
	});
})
</script>
<script type="text/javascript">
$(function(){	
	$("select[name='ftype'] option").each(function(index, element) {
        if($(this).attr("value")=='{$filmpro['ftype']}'){
			$(this).attr("selected","selected").siblings().removeAttr("selected");
		}
    });
})
</script>
</head>

<body id="body">
<div class="main-frame">
	<div class="position">华人码 > 添加电影分类</div>
	<!-- 图片资源开始 -->
	<div class="floatBackground" id="floatBackground" style="display: none;">
		<div class="bounced">
		<label class="closeImgResurces">X</label>
		<iframe id="imgResourcesiframe" src="{:rtrim(U('Upload/index'),'.html')}" width="750" height="465" frameborder="0" scrolling="auto"></iframe>
		</div>
	</div>
	<!-- 图片资源结束 -->
	<div class="addobject">
		<div class="obj-form">
			<form name="form1" id="form1" action="{:U('Film/fcledit')}" method="post" class="form-inline">
				<input type="hidden" name="hiddenid" value="{$filmpro.id}">
				<ul>
					<li>
						<label class="fl tle">电影名称：</label>
						<span class="fl cnt">
						<input name="name" class="form-control" placeholder="标题" value="{$filmpro.name}" style="width: 450px;"><em>*</em>
						</span>
					</li>
					<li>
						<label class="fl tle">链接地址：</label>
						<span class="fl cnt">
						<input name="filmlink" class="form-control" placeholder="链接地址" value="{$filmpro.filmlink}" style="width: 450px;"><em>先上传电影，再获取地址粘贴到这里</em>
						</span>
					</li>
					<li>
						<label class="fl tle">封面海报：</label>
						<span class="fl cnt"><input name="thumbimg" id="thumbimg" value="{$filmpro.h_url}" class="form-control" placeholder="图片地址" style="width: 450px;"><a class="browse" f='thumbimg'>浏览···</a></span>
					</li>
					<li>
						<label class="fl tle">&nbsp;</label>
						<span class="fl cnt"><img src="{$filmpro.h_url}" width="200" /></span>
					</li>
					<li>
						<label class="fl tle">影片类型：</label>
				    	<span class="fl cnt">
					    	<select name="ftype" class="template form-control">
					    		<option value="爱情">爱情</option>
								<option value="科幻">科幻</option>
								<option value="惊悚">惊悚</option>
								<option value="古装">古装</option>
								<option value="玄幻">玄幻</option>
								<option value="都市">都市</option>
								<option value="纪录片">纪录片</option>
								<option value="喜剧">喜剧</option>
								<option value="动作">动作</option>
								<option value="伦理">伦理</option>
								<option value="悬疑">悬疑</option>	
								<option value="犯罪">犯罪</option>   		
					    	</select>
				    	</span>
					</li>
					<li>
						<label class="fl tle">上映时间：</label>
						<span class="fl cnt">
						<input name="fbrowtime" class="form-control" id="pro_starttime" readonly="readonly" placeholder="上映时间" value="{$filmpro.fbrowtime}" style="width: 200px;"><em style="color:#999;">格式为：2016年5月28日</em>
						</span>
					</li>
				    <script type="text/javascript" charset="utf-8" src="__PUBLIC__/UEditor/ueditor.config.js"></script>
				    <script type="text/javascript" charset="utf-8" src="__PUBLIC__/UEditor/ueditor.all.min.js"> </script>
				    <script type="text/javascript" charset="utf-8" src="__PUBLIC__/UEditor/lang/zh-cn/zh-cn.js"></script>
					<li>
						<label class="fl tle">电影简介：</label>
						<span class="fl cnt">
							<textarea name="content" id="editor" style="width: 900px; height:300px; overflow: hidden;">{$filmpro.content}</textarea>
							<script>var ue = UE.getEditor('editor');</script>
						</span>
					</li>
					<li>
						<label class="fl tle">排序：</label>
						<span class="fl cnt">
						<input name="sort" class="form-control" value="{$filmpro.sort}" style="width: 60px;">
						</span>
					</li>

					<li class="error" style="display:none;">
						<label class="fl tle">&nbsp;</label>
						<span class="fl cnt"><font>错误：此处显示错误提示</font></span>
					</li>
					<li class="submit">
						<label class="fl tle">&nbsp;</label>
						<span class="fl cnt"><input type="submit" value="确定修改" class="submitbtn" /></span>
					</li>
				</ul>
			</form>
		</div>
		<div class="obj-previewimg">
			<div class="instructions">
				<b>备注说明：</b><br>
				1、带有红色  “ * ” 项必填<br>
			</div>
		</div>
	</div>

</div>
</body>
</html>
